package cn.appinfo.service.appinfo;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.appinfo.dao.appInfo.AppInfoMapper;
import cn.appinfo.pojo.AppInfo;

@Service
public class AppInfoServiceImpl implements AppInfoService{

	@Resource
	private AppInfoMapper appinfo;
	@Override
	public List<AppInfo> getAppInfoList(int currentPageNo,int size,String SoftwareName,int FlatformId,
			int categoryLevel1,int categoryLevel2,int categoryLevel3) {
		return appinfo.getAppInfoList(currentPageNo,size,SoftwareName,FlatformId,categoryLevel1,categoryLevel2,categoryLevel3);
	}
	@Override
	public int appInfoCount(String SoftwareName,int FlatformId,
			int categoryLevel1,int categoryLevel2,int categoryLevel3) {
		return appinfo.appInfoCount(SoftwareName,FlatformId,categoryLevel1,categoryLevel2,categoryLevel3);
	}
	@Override
	public AppInfo getAppInfo(int id) {
		return appinfo.getAppInfo(id);
	}
	@Override
	public void checksave(int id,String status) {
		appinfo.checksave(id,status);
	}
	@Override
	public List<AppInfo> getAppInfoList2(int currentPageNo, int size,
			String SoftwareName, int FlatformId, int categoryLevel1,
			int categoryLevel2, int categoryLevel3,int status,int devId) {
		return appinfo.getAppInfoList2(currentPageNo,size,SoftwareName,FlatformId,categoryLevel1,categoryLevel2,categoryLevel3,status,devId);
	}
	@Override
	public int appInfoCount2(String SoftwareName, int FlatformId,
			int categoryLevel1, int categoryLevel2, int categoryLevel3,
			int status,int devId) {
		return appinfo.appInfoCount2(SoftwareName,FlatformId,categoryLevel1,categoryLevel2,categoryLevel3,status,devId);
	}
	@Override
	public boolean add(AppInfo appinfo) {
		if(this.appinfo.add(appinfo)>0){
			return true;
		}
		return false;
	}
	@Override
	public String getAPKName(String APKName) {
		return appinfo.getAPKName(APKName);
	}
	@Override
	public void updateVersionId(int appid) {
		appinfo.updateVersionId(appid);
	}
	@Override
	public boolean updateLogo(String id) {
		if(this.appinfo.updateLogo(id)>0){
			return true;
		}
		return false;
	}
	@Override
	public boolean modify(AppInfo appinfo) {
		if(this.appinfo.modify(appinfo)>0){
			return true;
		}
		return false;
	}
	@Override
	public boolean delId(String id) {
		if(this.appinfo.delId(id)>0){
			return true;
		}
		return false;
	}

}
